package com.blueocean_health.care.management.domain.dto;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.blueocean_health.care.management.common.base.em.TimeType;
import com.blueocean_health.care.management.common.base.time.TimeUtils;
import com.blueocean_health.care.management.common.excel.ExcelResources;
import com.blueocean_health.care.management.em.ServiceTypeEnum;

/**
 * @author 作者: zwg.BlueOcean
 * @date 创建时间：2017年8月30日 下午2:26:51
 * @version 版本号： 1.0*
 * @parameter *
 * @since *
 * @return *
 * @description 护工日报表
 */
/**
 * @author zwg.BlueOcean
 *
 */
public class OrderNurseDailyReport {
	// 编号
	private int id;
	// 科室
	private String departmentName;
	// 楼号
	private String buildingNumberName;
	// 楼层
	private String floorName;
	// 日费用
	private float dayPay;
	// 患者姓名
	private String patientName;
	// 护工
	private String workerName;
	// 订单号
	private String orderId;
	@JSONField(serialize=false)
	private String serviceId;
	// 床号
	private String bedNumber;
	// 服务类型
	private String serviceType;
	private String serviceTypeName;
	// 订单类型  1：新入 2：续费  3：退款
	private String orderType;
	// 收费日期
	private String svrDay;
	@JSONField(serialize=false)
	private Date startTime;
	
	@JSONField(serialize=false)
	private Date endTime;
	@JSONField(serialize=false)
	private String day;
	@JSONField(serialize=false)
	private Long version ;
	
	public String getServiceType() {
		return serviceType;
	}

	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@ExcelResources(title = "科室", order = 1)
	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	@ExcelResources(title = "楼号", order = 2)
	public String getBuildingNumberName() {
		return buildingNumberName;
	}

	public void setBuildingNumberName(String buildingNumberName) {
		this.buildingNumberName = buildingNumberName;
	}
	@ExcelResources(title = "楼层", order = 3)
	public String getFloorName() {
		return floorName;
	}

	public void setFloorName(String floorName) {
		this.floorName = floorName;
	}
	@ExcelResources(title = "实际摊算费用", order = 4,isNum=1)
	public float getDayPay() {
		return dayPay;
	}

	public void setDayPay(float dayPay) {
		this.dayPay = dayPay;
	}
	@ExcelResources(title = "患者姓名", order = 8)
	public String getPatientName() {
		return patientName;
	}

	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}
	@ExcelResources(title = "护理员", order = 9)
	public String getWorkerName() {
		return workerName;
	}

	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}
	@ExcelResources(title = "订单号", order = 10)
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	@ExcelResources(title = "床号", order = 7)
	public String getBedNumber() {
		return bedNumber;
	}

	public void setBedNumber(String bedNumber) {
		this.bedNumber = bedNumber;
	}


	@ExcelResources(title = "服务类型", order = 5)
	public String getServiceTypeName() {
		return  ServiceTypeEnum.valueOf("_" + getServiceType()).getVal();
	}

	public void setServiceTypeName(String serviceTypeName) {
		this.serviceTypeName = serviceTypeName;
	}
	@ExcelResources(title = "服务时间", order = 6)
	public String getSvrDay() {
		String st = TimeUtils.getStringByDate(getStartTime(), TimeType.yyyy_MM_dd_HH_mm_ss);
		String et = TimeUtils.getStringByDate(getEndTime(), TimeType.yyyy_MM_dd_HH_mm_ss);
		return st + "--" + et;
	}

	public void setSvrDay(String svrDay) {
		this.svrDay = svrDay;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getServiceId() {
		return serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	
}
